package prototype.before;

/**
 * Created by IntelliJ
 * Author:熊磊
 */
public class Client {
    //拷贝羊传统写法
    public static void main(String[] args) {
        Sheep sheep1 = new Sheep("tom", 1, "white");
        Sheep sheep2 = new Sheep(sheep1.getName(), sheep1.getAge(), sheep1.getColor());
        System.out.println(sheep1.hashCode());
        System.out.println(sheep2.hashCode());
    }
}
